﻿using System;
using System.Collections.Generic;
using System.Net;
using System.Text;

namespace Syspetro.Core.ErrorException
{
    public class ExceptionTypeError : Exception, IErrorException
    {
        readonly string Msg = null;
        public ExceptionTypeError()
        {

        }
        public ExceptionTypeError(string msg)
        {
            Msg = msg;
        }
        public bool IsDetails { get => true; }
        public HttpStatusCode Code() => HttpStatusCode.BadRequest;
        public new string Message() => string.IsNullOrEmpty(Msg) ? "参数类型错误" : Msg;
    }
}
